package com.bing.services.impl;

import com.bing.dao.TUrlDao;
import com.bing.entity.TUrl;
import com.bing.services.TUrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Set;

/**
 * Created by kaibb on 2016/6/4.
 */
@Transactional
@Service
public class TUrlServiceImpl implements TUrlService {

    @Autowired
    private TUrlDao tUrlDao;

    @Override
    public Set<TUrl> findBy(int scanCount, String taskId) {

        return tUrlDao.findBy(scanCount, taskId);
    }

    @Override
    public void update(Set<TUrl> tUrls) {
        tUrlDao.update(tUrls);
    }

    @Override
    public void insert(Set<TUrl> tUrls) {
        tUrlDao.insert(tUrls);
    }

    @Override
    public void save(TUrl tUrl) {
        tUrlDao.save(tUrl);
    }
}
